Changed caching to output image