updated access to image for pdf gen.