fixed pdf image bug