Is there an easy way to turn integer values to pixels?
Simplest thing may be to write down your image in plain Portable Gray
Map format. This is a very
simple (and inefficient) ASCII format consisting of a signature (the
string "P2"), followed by the width and height of the image, followed by
the maximum possible gray level (1023 in your case), followed by the
pixel values. It's a free form format, meaning you can mix spaces and
newlines at your convenience.

Here is an example image: two rows of pixels, five columns, and
brightness increasing left to right and top to bottom:

P2
5 2
1023
  0 111 222 333 444
555 666 777 888 999


Then, any image conversion software should be able to convert that into
the format of your choice (PNG, JPEG, whatever...).