fixes #1 - Reduce typecasts from 'unsigned long int' to 'png_uint_32'