Save the image data with storage API
Move storage ralated stuff to storage-util