fixed kernal to copy image successfully.