Grid to PDF creates a blank line in between in the PDF

I have written a rest api to store images uploaded under htdocs/imguploads. Using postman I have uploaded and physically verified the location of the image. It is getting properly stored. I am also inserting the file name of the image in MySQL table.
I have created a grid application which has to show the image against a particular record. But I am not able to get the path properly set. I have tried storing the path inside the database and also using only the file name. either way I am not able to display the image.

Suresh