TCPDF error: Unsupported image type: jpg&res=medium