Added image loading and cleanup functions and made bool quit a local variable