TCPDF error: Unsupported image type: jpg?resize=500%2c378&ssl=1