Fixed THUMBNAIL_PRESERVE_FORMAT setting usage.