Correctly clears images to prevent the files from being 'locked' (can't modify due to being in use).