Moved RenderLoopTask into a separate component

Signed-off-by: Charlotte Gore <conspiracygore@gmail.com>