added scaling to canvas