RenderTarget cleanup (with bits from Vodacek)