Using MacTex distribution and graphicx version higher than 51733 the problem exist only for Xelatex engine. In the tex file generated by Pandoc, if the line \usepackage{graphicx,grffile} is replace by \usepackage{graphicx} everything is OK