maxwidth/maxheight enforced