if(maintainAspect){
double scale = new ScaleCalculator().calculate((double)imageWidth, (double)imageHeight, (double)width, (double)height);
width = (int) (imageWidth * scale);
height = (int) (imageHeight * scale);
}
BicubicScaleFilter op = new BicubicScaleFilter(width, height);
this.image = op.filter(image, null);
}