No they changed the class. It was working a few days ago. The script extracted the original url of the imge. I cant get it to workI bet that your script was made when Google showed the preview horizontally and not on a side panel.
You just need to edit the image's link selector.