use jpeg for thumbnails
Merge pull request #695 from adrianob/use_jpeg

use jpeg for thumbnails