changed render picture to use an explicit frame number rather than
selecting frame via the state variable.