Added GetStride() in places it was missing.