Updated image handling to get the text on more images