debug option in gallery