script for getting all public photo links, partly complete