fix delete and takephoto