get image data from server