Added method to take picture