added basic viewport handling to rendertargets