Flushes any image resources when hiding some gif images, prevents leaking "Image Animator" threads.