Added a repository of default shapes.
Fixed some bugs regarding creating new shapes, saving shapes and viewport not always