When a direct picture link was used the next/prev buttons weren't working anymore