Added Code to capture image and save it to the SD card