[image_view2] Add utility function to resolve tf