Toggling The image viewer

here the my question is there a way to toggle from actual size to fit to window when viewing image files with the built in viewer?

Pressing the Original Size and Fit To Page buttons will do this.