Background rework

The background management has been refactored and now it works better, without memory leaks.

In addition, it's now possible to randomize the wallpapers.