added support for copy/paste images from clipboard