actually saving the image in the db