Hide the paste target better

If for whatever reason the contents of the paste target were not cleared,
this could result in garbage showing up on screen.
This also gets rid of odd repainting when pasting large images on Firefox.
Fix getAsFile call from clipboard on Webkit browsers
Fix pasting image from clipboard on Firefox