Output image is completely black