changed optional argument syntax of \img command to be more LaTeX-like