Fixed pdf to image conversion bug.