Made state object, fps counter and quick random image generator