Fixed saveImage