convert 'a.png' \
\( -background none -geometry 100x100+150+50! -rotate 5 'b.png' \) \
-composite 'a.png';
This is a simple script to rotate and place an image b on top of image a. My problem is that image b is being rotated within the defined area (100x100):

How do I rotate the whole image frame as such:

Or, put it simple:

- is the original picture (a) with (b) picture on top of it
- picture two is how im rotates the (b) picture
- is how I need the picture rotated