Resolution and contrast enhancements of optical microscope based on point spread function engineering