Improved cache headers and png image generation