Lighting can greatly affect the quality of images produced by your webcam. Here is a great article detailing ways to adjust the lighting of your webcam. Even the cheapest of webcams can still produce good images.