You'll have to modify the rifle.conf:
With feh, you can use the --start-at option and add a line to rifle.conf like:
ext png|bmp|gif|jpe?g, X, flag f = feh -FZx *.bmp *.jpg *.png *.gif *.jpeg --start-at "$(basename "$1")"
With sxiv, you can use this script. It contains further instructions.