Delete previous image when new image uploaded. Save uploaded image information to db as well.