Fix up resizing edge cases with diff. img formats.

This includes a fix for portrait, landscape modes,
maxHeight|maxWidths of images and with the mobile
reset.

It also removes the throttle function which shouldn’t
be part of this plugin at all.