Canvas clamping implemented.