Fixed the bug of the copy method for IplImage