Support copy-pasting of images in editor