Fix DOM shape canvas positioning