Adding image.resize (bilinear sampling)