There is often a big price difference between a 20-megapixel camera and a 50-megapixel camera. Understanding the value of megapixels is essential to avoid wasting money.