Add next-previous image support.