Save image to cache directory