updating pattern and color images