Recode image