Fix warning.
Fix the thread explosion bug.
Use much simpler image loading