Gallery and camera cleanup