updated database for image replacement