Fix bug with preview image on pasted image data