Adding pdf images management + modified parsing of errors