Let GetImagesTopN return IEnumerable
and make some other minor changes