Don't run an expensive query to fetch image IDs

See: https://github.com/GigaOM/gigaom/issues/6041