def get_size(self, width, height):
    scale_height = (self.__height / height)
    scale_width = (self.__width / width)
    if (scale_width < scale_height):
        scale_height = scale_width
    else:
        scale_width = scale_height
    new_height = self.constrain_to_multiple_of((scale_height * height))
    new_width = self.constrain_to_multiple_of((scale_width * width))
    return (new_width, new_height)
def get_size(self, width, height):
    scale_height = (self.__height / height)
    scale_width = (self.__width / width)
    if (scale_width < scale_height):
        scale_height = scale_width
    else:
        scale_width = scale_height
    new_height = self.constrain_to_multiple_of((scale_height * height))
    new_width = self.constrain_to_multiple_of((scale_width * width))
    return (new_width, new_height)