Better image preview processor

 * Thumbnail and wide images are converted to JPG (transparent pixels are set to white)
 * GIF images are converted to JPG
 * Other images retain their original format