Convert jpg to png for pdf generation