added draw tool functionality to engine