background: Guard against XDG_PICTURES_DIR not being defined

https://bugzilla.gnome.org/show_bug.cgi?id=709771
background: Use GLib API to convert absolute filename to URI

https://bugzilla.gnome.org/show_bug.cgi?id=709771