Issue in converting the Pixels values to image

Yes I did not print h and w , pardon, why I need to that ? and how can I do?