Change widthOfImage/heightOfImage to input ports