delete unused code lines; rename paste_createImage() to paste_image