Code to send JPG across socket added.