TCPDF error: Unsupported image type: jpg&newxsize=500&newysize=500&fileout=