bugfixed taking picture