moved rendering code into render.h/c removed canvas for now