add 8bit index color image load
change png load use libpng