Added option to specify the colorspace used with image magic

Sometimes you might want to extract images with a colorspace other than RGB, this allows you to do that.