Restructured files, implemented ResourceHandler, fixed background image not being a power of 2