Fix a bug with drawing of resizable images and a bug with calculation of minimumContentHeight.