Added capability to chose the interval between new wallpapers and changed some code layout