PasteImage: Safe solution for #608