stream support for image to pdf