Added resolution option to camera_open