Added support for flood fill with a brush pattern
Some module dependency cleanup
Fixed grid