[networkimage] Discard canceled operations.

Closes #442.