An implementation of an N shares image splitting algorithm