Merged ScreenManager code with Camera code