restructured some of inject, started getting context/widht/height of canvas, sleep time