Your image is 32 pixels high and you're trying to write at y == 50.
Changing:
to
will draw a pixel on the last row of the image.