def rgb_to_hsv(image):
    """
    Wrapper function to convert a landsat 4,5 or 5 image from RGB to HSV.

    :param image: Landsat Image to convert to the HSV color space
    :return: Image containing three bands, representing the hue, saturation and value.
    """
    image_hsv = image.select(['B3', 'B2', 'B1']).multiply(0.0001).rgbToHsv()

    return image_hsv.copyProperties(image).set('system:time_start', image.get('system:time_start'))