Given the amount of bug reports with screenshots of code instead of code as text I'm starting to think that it was a bad idea for Github to make image pasting as easy as it is.
It wouldn't surprise me to hear that they're already working on a solution that uses OCR (with AI of course) to make it easy to copy the text of an image.