fix randomPhoto erroring