fixed image names and updated the database