Extract PDF images

Save the pictures stored inside a PDF as they are: JPGs stay JPGs, others become PNGs.