allow transparent background only for pngs and gifs, keep white background from jpegs