TCPDF error: Unsupported image type: jpg?resize=287,300