UNDECIDED: implement DumpImagesAction

Helps me to debug what's going on in the flagging process. Not sure whether
upstream would be interested.