I use this command in my shell to convert from PDF to image
convert -density 150x150 <PDF filename> -append -quality 100 <Image filename>
The PDF has four pages, but I only need the last two. How can I remove the first two pages from the PDF and convert the ones which remain to an image?