MOD optimized resize images.