Add canceling image requests to prevent memory leaks.