Changed color thread to updateThread and implemented scaler on
updatethread