Fixed issues with loading resized/thumbnail images and other issues related to images