- Implement bicubic interpolation function for smoother image resampling - Add logic to switch between nearest, bilinear, and bicubic sampling methods - Update both Python and JavaScript implementations for consistency - Modify safe denominator calculation to preserve sign for negative values