Got rid of global variable 'wallpaper_path'
Got rid of global variable 'known_image' and make use of sqlite3 callbacks more effectively