trying to save image while offline (not working)