Yes, the removed lines fixe the issue. I avoid to recreate and attach events each time a new picture or video is taken. With this patch the view is created and the events are attached only once. On the original patch we destroy/recreate the view at each new picture/video and we remove and reattach events