clean session id filter allowing efficient id selection, add img to test