receiving image size and dimensions from server