fixed bug in recuperation of mask_img
forgot delayed in parallel instructions