since the data is now specified as a numpy ndarray, this check will prevent attempting to run an `Image` method on an `ndarray`