Bug 1041710: Ensure that wallpaper images always exactly match the size of the screen

Likewise, you could put `DEBUG` and the debug function into prototype object.