saves images in temp folder in offline mode