refactor the static camera struct into Camera class