Fixed pdf to image resolution bug