transform_convert_image_dtype function

Convert a tensor image to the given dtype and scale the values accordingly