There seems to be an issue in which if the internet connection is lost, the image rotation stops, even if the internet connection is subsequently restored.
I'm guessing that exception handling or a timeout is needed to detect that the image has failed to rotate and to continue trying.