As an image is warped/rotated the number of rows and/or columns in it will change.
You'll need to modify your code so that outputImage is variable sized.
To do this open the code (for the MATLAB Function Block) in the editor and open up the "Edit Data" dialog.
Select outputImage in the left hand column, then
- check the "variable size" check box
- enter something like [400 400 3] as the size
You have to make a best guess for the maximum row and column size that you expect.
Note also that the Matlab function block must have a discrete sample time for it to use variable sized signals.
To set this, right click on the block and select Block Parameters, then set a sample time.