saving image url in the database
removing constructing image object