Improving PDF to images conversion