issue #967 - resize needs to resize masks and cropping masks too