Converting a PDF to JPG and then scaling turns the image black

My code to convert a PDF file to JPG works great, but if I try to use images[0].Scale(50.0,50.0); where images is an ImageCollection and images[0] is an Image that appears fine when written; it will scale my image down, but it turns the majority of the
image solid black. Is there a setting I can set or better way for resizing images based on percentage that are in an ImageCollection?

This is happening because the background of your PDF is transparent. When you save it as JPEG this will turn black for your PDF's. You should change the transparent pixels to a color with the ColorAlpha method: