def decodePILimage(PILimage): image = sim.to_rectangle(PILimage) return decode(image)
def unscramblePILimage(PILimage): image = sim.to_rectangle(PILimage) return sim.to_flat(unscramble(image))
def encodePILimage(PILimage, message): image = sim.to_rectangle(PILimage) output = encode(image, message) return sim.to_flat(output)