* adjust pasteImage and ajaxPasteImage function for objectID and objectType.