Python: output image is now handled