Updating background image rotation code