enhance image function

enhance image function