image parser and parseFiles method