Bug fix for scanLineStride value