Improved graphics module, adding some primitive shapes to reduce usage of canvas methods outside the module