[Olena-patches] milena r1316: Fix bug in translate_image