Updating file rotating background images

Updating code of bg.php and deleting unwanted files