replaced ImageFile with ContentFile