ENH: Meaningful error message when imagesToMatrix gets images
of different dimension.

The previous version attempted to output the error message but failed
because it was trying to coerce an antsImage to string rather than using
the file name.