refactoring: makes unsubscribing from image loading easier

This is related to #3618.