Factory function to create an image artist.
If all the coordinates of the data are 1D and linearly spaced,
a FastImage is created.
Otherwise, a MeshImage is created.
Parameters:
canvas (Canvas) – The canvas that will display the image.
data (DataArray) – The data to create the image from.