fixed bug where old gif images were still visible