debugging sockets with images