add option for pan to dismiss and image index title