Set QUICKFILTER=*.(jpg|jpeg)
It will act as a toggle automatically.
If needed: How to use buttons and scripts from this forum