changed test to check every pix instead of centroid