This allows the image browser to utilize the frames, so then when you double click on a frame, it will zoom the viewport to that frame instead of just doubling the zoom.
There's stuff in place to switch to the next frame, but I can't figure out how to get the keys working and stuff -_-. Anyway, this has all the maths done and ready, so someone who understands qml better can call the function from wherever.