thickness now works, added refresh bool to decrease CPU usage on idle