Removed unnecessary DrawThread code