resize function from ImageManipulator is working from now.