store image path in database.