TCPDF error: Unsupported image type: jpg?resize=749%2c499