tried javascript png library that is actually faster than the c++ one. unfortunately it's confusing as all hell