finish image storage by datastore way.