constants as images working
fix up ifthenelse and set_value
cleanups