move arg dict where it can be reused
reuse template_args
reuse template_args
start to break out data url lookup
break out data url lookup
move all forms into dict
remove redundand del()s