Make image clickable to annotate it

Hello everyone,
I created an app to annotate text in images using streamlit as it is easy and fast.
I wanted to know if it is possible to make the rectangle in the image bellow clickable;
When it is clicked the number of row changes automatically to the number indicated on the rectangle. (To make the annotation easier and faster)

If anyone could help me, I would really appreciate it!
Thank you so much :blush: !