only update affected area of bitmap