Updated the Picture capture Mechanism