I have been writing an addon that utilizes an imported image. So far the only way to import was to to to the UV/Image Editor and import the image. Then copy the name of the imported image to a text input in my addon. This is cumbersome and I would rather have something that looks like this:
From which I can access the image through
bpy.data.images[<image name here>]
Is this possible to do? I have only been successful in accessing the image path, but that won't work for my script.