refactor translate to use pic_dict instead of boxes