Support tree photo filtering

Builds on top of PR #33