Hacked to prevent export of non selected pics :-/