Fix 16-bit depth raw size calculation.
Complete ImageViewer. Correctly decoded 1-4 bits gray PNG.
Support PNG filtering.