Fixed PDF and PNG bugs on Save As... Dialog.
Added a dialog to fix bug #24.