switched from allegro to glfw, fixed memory error in png loader