ImageField: use enum for modes