Fixed issues with copy-paste and export to png from CLI