A HIGH-CONTRAST IMAGING ALGORITHM: OPTIMIZED IMAGE ROTATION AND SUBTRACTION