drawing images only when changed