add image path to database