fixed file upload procesessing of images and storing in datastore