Gallery multi pick. New encoding\decoding algorythm