Fixed up issues with previous commit.
Changes:
* Fixnum declarations replaced by more meaningful ones
* Pluggable *write-png-function* created for better flexibility
* Replaced tab characters with spaces