(mex) number of images is incorrect for single image case
related scanimage issue
mexScanImageTiffImageDescriptions (and potentially others) determines how many images are present by getting the last dimension. This usually works because the dimensions of the data matrix are XxYxN. If there is only one image, however, size of data matrix is XxY. It therefore thinks there are Y images.