cleaning up camera front/back selection code