The original code did handle removing downloaded images as part of the purge process - we shouldn't regress as part of this port, IMO.  Can you implement the file purging in this PR?