public static DecorativeImage decorateImage(ImageActionVO vo){
//construct DecorativeImage instance according to requirement
DecorativeImage image = new BaseDecorativeImage();
//apply resize
if(vo.getParams().isApplyResize()){
image = new ResizeImage(image);
}
//apply corner round
if(vo.getParams().isApplyRound()){
image = new RoundCornerImage(image);
}