https://stackoverflow.com/questions/20598936/saving-each-pdf-page-to-an-image-using-imagick