Refactor box painting routines

Fix drawing of rooms with brush size greater than 1 (#42)