allow use imgs as inputs