Seperated the camera configuration into pixel, frame size and frame rate functions