jQuery plugin for adjusting image width and height based on aspect ratio