Some cleanup in Png.hs

I updated module description in the header, renamed a few things that were named inappropriately and one change on the image size of generated palette.

The dimensions of the palette were set as `(size-1) (0)`, which I changed to `(size) (1)`. If there is a reason it was set that way, then sorry about that. I have run the tests and it seems they still pass.