complete test to determine file or image desplay