viewModel.cinemaSchedule
.observe(on: MainScheduler.instance)
.compactMap { $0.first?.imageUrl }
.flatMap { [weak self] urlString in
self!.movieImageView.kf.rx.setImage(with: URL(string: urlString)!)
}
.subscribe { _ in
print("Image Binding Completed")
}
.disposed(by: disposeBag)