Fixed png export from command line