BAC-1244: added script to migrate avatars