gallery snapshot helper script