[image_view2] add utility function to resolve tf