prepare result images and delete unused things