frameCount more robust hack
Frame refactored: now its constructor always takes an AbstractScene
parameter.