TCPDF error: Unsupported image type: jpg?resize=508%2c405&ssl=1