Removed joining of threads. Slightly improves performance.
Fixed resolution setting.