re-generate codec object if image changes