Change the way images can be handled in a lightbox

Could the image lightbox please be improved?

I’d love the ability to zoom in on large graphs and pan from left to right without having to open the image in a new tab.

As an example an image that is too large to properly read in a lightbox without zooming in: