update before image array