[Olena-patches] milena r1317: Fix traits for translate_image