Allow gateway images to be filtered

This commit allows the gateway image to be filtered. Handy if the gateway wants to supply multiple images rather than a single image SRC.