It's not that simple. The Borland graphic image format is not documented and you'd have to reverse engineer it. The best thing to do is to make yourself a program which loads a simple file format (like BMP or TGA), use an image editor to convert all your images to that format, use your program to load the image and display it using putpixel(), use getimage() to get the image into Borland's magic format in memory, then compress and save the image to disk.
Now for your main program you only need to load and decompress the Borland image data into memory and you can use the putimage() function as usual.