Solved RotateImage in java