Add gallery API with size filtering.
Add get_media.py script.