Added camera function to take picture