TCPDF error: Unsupported image type: php/phgalary/image?format=raw&type=img&id=507