return image shape from getArrayOfFeaturesAndLabels
cleaned up!