Support for importing an image via the fromImage argument

The `import_image` method only supported importing an image using `fromSrc`. I've added support for downloading an image from the public index or a custom registry using `fromImage`.