Flush function to write images to background
Adds function to randomize a wallpaper
Add some function comments