The png file would be opened and loaded when you supply its name to a function for loading the template. If you have pre-trained the template, make sure you use the load routine that includes the extra data. It couldn't load the png file when the dll is loaded because it doesn't know the name of the file yet, unless you included the load function as part of the dll initialization.
Bruce
Bruce Ammons
Ammons Engineering