improved image caching algo

now stores the csg and view hashes into the PNG meta data - more robust than previous approach of storing in the hardware.json file.