fix crash on height < 16 pixels.