fixed up file/image testing