Caching of images except for pngs