Optimized backround JPG size in GIMP, added basic error handling for events