FIX: Non-rounded rectangles now have a border.
FIX: Gridlines are all rendered BEFORE rectangles.
FIX: Cleaned up some of the code and changed a few labels.
TODO: Some of those variables are probably not needed...