Add trim operation.

Canvas#trim removes a single solid border around an image, if possible.