add support for refresh parameter in random photos