add terminate/2 callback
add image tag