make Camera into single class, simplify code