fixed bug where it was storing the image on the clipboard as a jpg