proc load_png(buf: Stream): Image {.raises: [Exception, ValueError, IOError, FormatError], tags: [ReadIOEffect].}