Added save operation for graphics element in the editor, many methods and variables have been refactored as not-static.