Split image_convert into to_pil_image and from_pil_image

Split up the original how-to to make it a more manageable size.