Fixed #2733 Setting height to maxheight instead of auto to correct issues with non-square images.