added function "Surface.get_dims"