Seperating the graphics library into a 2d library and a 3d library