Use 'context' instead of 'canvas' to work with latest Compose.