removed some hardcoded canvas dimensions