Maybe do:

```ruby
cell_image = data_cell[:image].is_a?(Hash) ? data_cell[:image][:image] || data_cell[:image]
cell_image = UIImage.imageNamed(cell_image) if cell_image.is_a?(String)

# replace other data_cell[:image][:image] with cell_image below
```