Added scaled rects code updated from gui
Removed logs from thread