remove unused images
collapse operation