Added support for exporting image to other than clipboard