fixed dynamic resize of renderedTexture and added test