fix bug with random photo from page