Removed almost all remaining custom drawing code.