adds libpng dependency