restore pictureInPicture and update Pig.py