BL-503: Add ability to paste images on Linux

This should also fix BL-495, BL-464, and BL-671.