Fixed THUMBNAIL_PRESERVE_FORMAT setting usage.
Merge pull request #223 from metazet/master

Fixed THUMBNAIL_PRESERVE_FORMAT setting usage.