Issue in converting the Pixels values to image

did you forget to print h and w before the pixels' value?