Swap graphs for images