Return image to python