This script is inspired by Arve Bersvendsen's Autosizer.
As with Autosizer, you can fit image to view-port width/height or view image as is. But there are few more or less useful features. Those are: