class ImageService: def __init__(self): pass def get_simple_image(self): with open("./static/small-image.png", "rb") as file: return file.read() def get_big_image(self): with open("./static/big-image.png", "rb") as file: return file.read() def save_image(self, img): with open("image.png", "wb") as file: file.write(img) return True