BL-503: Add ability to paste images on Linux

This should also fix BL-495, BL-464, and BL-671.
I don't think it makes any difference, but I added it in manually.