Revert "Revert "CZI: restrict dimension adjustment""

This reverts commit f6ebfd82805ed6175a1ed693da1a9e3c10cd6c91.