correct figure extension to make pdflatex happy
remove bad syntax.