correct behaviour of prev/next image methods