* add checkSavePath logic for pasteImage.