addition of imgs parameter at eigenVector function