working on converting time to pixels