now it really works after fixing issues about permissions
now random somehow works. need a more elegant way to get randomized photos