Fixed a bug with image thumbnail generation
The thumbnail size in pixels was compared with the point size of the original image