1.Compress the photo to web format
2.update the appcache file