png export is now working
Added error dialogs.