Add gdispImageIsOpen() function.