Getting info and anscestors from images