@NUVART – the reason why you get white areas for rotated images is clear:
JPEG does not support transparency.
For rotated frames (holding graphics and are not rotated 90, -90, 180 and -180 degrees) that you like to keep rotated, you need a different output format that supports transparency.
And that is PNG.
Uwe