How to purge an image