Reduction or annihilation of aberrations of an optical system by balancing ghost-imaging technique and optimal