jQuery plugin which adjusts images properties in order to exactly fit