not saving the default image to the db, logic added