Instead of duplicating the functionality of transform_rect in
get_local_bounding_rect, just use the function from utils.rs.