removing libpng dependency