Implement possibility of user-defined macros in picture editor.