Making get_images() more flexible.