added getting weight cutouts/mosaics to C library