switched to bicubic interpolation for image resizing