Fix copy-paste with images