def get_image_ratio(self):
    if self.texture:
        return (self.texture.width / float(self.texture.height))
    return 1.0
def get_image_ratio(self):
    if self.texture:
        return (self.texture.width / float(self.texture.height))
    return 1.0