found a way to get image and save it