Account for case when image only contains one unique value