The code (which is commented, I might add) is ready to be cut & pasted without anyone having to understand anything but the two interfaces: LoadImg and UnloadImg functions
Not really. The only way I could figure that out is to look into the program code and work it out. You should start the code with brief description of its use, that doesn't require the code to be read.