added codes that will send the images from camera correctly.