Removing the event thread and lodepng. Using SDL_image instead. Added class Texture that actually does something.