Export to pdf from grid application

Hi,

​I have a grid application where there is a field with image (the image is retrieved from the server). Below is the script to retrieve the image.

Under on Record:
$employee={employee};
$pic="…/_lib/file/img/".$employee.".png";
$pic2="<img src=’".$pic."’/>";
{image}=$pic2;

​It display the image in the grid application but when I try to download to PDF, the image is not shown in the PDF.

Can someone kindly help? Thanks.