Device for image coding