If you have a habit that you want to get rid of, shut your eyes and imagine that your real self is standing before you. Now try the power of affirmation; say to yourself, "You are not a weakling; you can stop this habit if you want to. This habit is bad and you want to break it." Just imagine that you are some one else giving this advice. This is very valuable practice. You, in time, see yourself as others see you. The habit loses its power over you and you are free.
If you will just form the mental image of controlling yourself as another person might, you will take a delight in breaking bad habits. I have known a number of men to break themselves of drinking in this way.