Better Resource disposal

Quitting game now properly disposes resources.
Increased code reusability within image creation.