Removing absolute height and width parameters for canvas elements in view templates