Make automaton canvas background transparent if no background color is specified.
Handle displays with high pixel density.
Draw grid lines using Real Whole Pixels(tm)!
Base canvas size on its container's size, not the window's.
Center the canvas in its parent element when it's resized.
Smells like some math is off somewhere...