Added the ability to convert to PNG and PDF from the command-line.