Fixed problem with memory alignment of IplImage.