Update server.py

Tiny change to the locations query. Just updated it to select images too