stuff runs now but the output image is not correct