More work on rendertargets