Fixes the resizing math, using the actual shape boundaries instead of the coverage area