Fixed wrong index in prefilterXSobel function

backport of #673