After rotating the image the canvas not able to rotate only the image in rotated and fitted inside the original canvas height and width
I want canvas to height and width to change when I rotate the image and work accordingly, And the overlay should also fit the rotated canvas and crop should work accordingly.