add max_dimension to REST interface