Add an image import button in addon 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[&lt;image name here&gt;]


Is this possible to do? I have only been successful in accessing the image path, but that won't work for my script.
You can get access to the file browser in Blender by using the StringProperty with the subtype "FILE_PATH". As documented here. And example of using this would be 

file_path = StringProperty(name = "File", subtype = "FILE_PATH")


Then you can just use file_path like this:

bpy.data.images.load(file_path) #most of the time you will have to do self.file_path


If you need to use that image elsewhere just set all that equal to a variable.