handle zero bit planes