add copy rgb info to IplImage function