extensions = 'All Known Files...\t*.{exr,tif,tx,hdr,tga,png,jpg,jpeg,bmp,sgi,psd,pic}\n\
Open EXR (*.exr)\t*.{exr}\nTIFF (*.tif)\t*.{tif}\nTX (*.tx)\t*.{tx}\n\
HDR (*.hdr)\t*.{hdr}\nTarga (*.tga)\t*.{tga}\nPNG (*.png)\t*.{png}\nJPG (*.jpg)\t*.{jpg}\n\
JPEG (*.jpeg)\t*.{jpeg}\nBMP (*.bmp)\t*.{bmp}\nSGI (*.sgi)\t*.{sgi}\nPSD (*.psd)\t*.{psd}\n\
PIC (*.pic)\t*.{pic}'
file = ix.api.GuiWidget.open_file(ix.application, '', 'Browse for an image', extensions)
if file != "":
# do your stuff here
else:
ix.log_warning('Image Based Lighting setup has been aborted.')