Added utility function numpy_to_image

This function converts 2D or 3D numpy arrays to vtkImageData
objects.

Change-Id: I9e23f161201c794f3ef122f3f8bf3c3a7b4b39da