Add C command for clearing the image and resetting it