Allow readImage to get last frame since a given frame index
readImage(-1)
fetches the last image, but there is no way to get the last image after a given frame index to avoid fetching the same image multiple times.
The idea is to introduce a new command readLastImage(n)
that would fetch the last image only if the last image index is > n
.
Discussed with @valentin.valls