Your image quality may improve by leaps and bounds by NOT using the pop-up flash (pro bodies don't even have a pop-up flash... it's external flash or nothing.)
I will use a pop-up flash in limited circumstances for "fill" lighting in outdoor sun shooting situations ONLY (and only for close subjects because a pop-up flash is good for maybe 10'.)
Your profile says you have a Sony a65.
Tragically, Sony uses a proprietary hot-shoe design rather than the industry standard sized used by everyone else. You could buy a Sony flash. There are some 3rd party flashes that have a Sony foot on them (choices will be a bit limited). BUT... you can also buy a std. flash shoe to Sony adapter (see:
PC Sync & Hot Shoe Adapters | B&H Photo Video ) Being able to use any flash with a standard shoe will open up your choices a bit.
If you can get the flash mounted up on the shoe, or flash bracket, or even off-camera, then you can get much better lighting. Not only will you get more distance between lens and light, you can also bounce the light or use any number of light modifiers.