Images with duplicate names are invalid