Should be the other way round: image shape must be a multiple of block size?