Remove yucky unsafePerformIO hacks, finish off image loading (PNG only atm), textures, gradients, etc.