how to do an action until picture in region stays the same