Changed it so that getBoundingClientRect is called on the new dom element vs the one for canvas