Unfortunately, the IMAQ image object isn't storable inside of TestStand. Storing a 2D array isn't viable either, a) because of size, and b) because you'd be permanently swapping backwards and forwards from image to 2D array, and that adds a lot of overhead.
The workaround is to over-wrap the vi's you're calling, and if you want to store the image reference do so into a global variable. That way you can make separate calls like IMAQ Create, followed by IMAQ Snap, and they'll reference the same global variable.
This works, even if you compile the .vi's you make into a dll.
Hope that helps
Sacha Emery
Applications Engineer
National Instruments UK
// it takes almost no time to rate an answer