Scaling implies multiplying all values by a constant factor. This function really expands a rectangle by a value relative to its center. Maybe there's a better name for this function than `scale`?