maxheight replaced by pixelcount