Added feature to remove duplicated images from database.