Changed image add to add the image to the database