Mimic django ImageField's behaviour