simplifying pictures query