Fix modular grid drawing when Y axis is pointing up
When origin is at lower left with Y axis pointing up we ended up with negative modular grid sizes, so it didn't draw anything. Flip the sign of grid dimensions.
When origin is at lower left with Y axis pointing up we ended up with negative modular grid sizes, so it didn't draw anything. Flip the sign of grid dimensions.