Fixing bug saving only one thumbnail size when several thumbnail sizes are defined by IMAGES_THUMBS setting