removing unreferenced images