added image update after calculations