Updated GUI class to correctly handle Opaque backgrounds and PKM files