International legal sources of implementation of the humanitarian principle in the process of impris