Support resized versions of the images and the image editor, use better debug messages and detect .jpeg files