add methods and tests for complex flag and element byte size to img reader