How to write a source code for buffering an image send through USB and display .

I am using arduino leanordo board for my development.i am using 2.2 inch tft lcd. I have to dispaly an image which is send from host system through usb to arduino leonardo board.The image should be buffered and using that buffer i have to display that image .I cannot save the image any where.Please help me to write a source code for this.

Thanks
Hello-A