Refactored image handling into TableCell.