Removed unneeded function in CMakeLists
Fixed sprite not drawing to window
General improvements in widget code