Knockout.js custom binding to resize an image element to have a max width and max height