Quoted mkdir command to make it work for filenames with spaces in them.
Added more quotes to try to fix filenames with spaces problem.
Still does not work with filenames with spaces. Added a TODO comment to remind myself to do this.
Fixed quoting and took it out of debug mode. I'll fix the spaces in filenames problem later.
Add extra information and automatically convert to png files.
Notify how many images were extracted.
Added conversion to png for .pbm extensions. Previously only ppm extensions were converted to png.