Updated Image::resize