Make it work for cgCompress images instead of OpenRaster