Draw rectangles on layers

Can now draw coordinate safe rectangles of any value onto a layer. An
example of this is used when the player class writes the fog layer. All
in dire need of refactoring.