Update size of the image on the socekt