free image_units on decoder reset