support two images with the same name
make pdflatex halt on error + fix the name mangling for duplicate images
-- latex doesn't like any '.' in the filename