TCPDF error: Unsupported image type: png&res=medium