added top and bottom boundaries to Automatic camera