A megapixel is 1,000,000px, not 1024*1024=2^20 pixels.