fix error of missing value in text function in imagine.py