jQuery plugin to resize an image