CZI: check plane size before adjusting dimensions