Javascript Plugin to resize image proportioanly and by clipping remaining area