modified:   get_images_thread