Added background image, fixed memory leak, compiler warnings