PHP PNG handler - fork from http://svn.coderepos.org/share/events/phpframework/plain_php/trunk/model/pnglib/