added left and right boundaries to AutomaticCamera