image is now stored properly