mock get_image and get_flavor on service.