implemet function of image recieve from server