memory-friendly resize for circle cropping