Optimized analysis method for indirect dark matter searches with Imaging Air Cherenkov Telescopes