Support for thumbnails on multiple formats (GIF, PNG and JPEG).
Bugfix on thumbnail generation