fix imagine handling. now only the form template issue remains