Reduce code size of Camera, correct error with speed