If width or height is not defined, use the values of source image