Implemented export-to-png functionality. There's still a file selection dialog + some export options required.