Fix reading and writing of multidimensional images via ImageMagick

Fixes the second part of #71
Add some support for PixelWands