Fixed prev and next links while on individual pic page
Fixed problem with main page random picture index.