New ConvertFlashRotation algorithm

Algorithm based on https://github.com/m13253/danmaku2ass/issues/7#issuecomment-41489422