TCPDF error: Unsupported image type: jpg?resize=520%2c245