***added query to photos***