modified parser to extract images using an external tool