tf.compat.v1.image.resize_image_with_pad