Added a CachedByteArray class that will store compressed (disk-ready) images on the appropriate media