Refactored RenderTarget2D class