Actually calling beforeDestruction() method on disposables.
Reworked TexturedRect into RectPainter.
Using the new RectPainter.