Implement BuildImage cancellation