从数据库中检索图像但没有显示

I have a form and with this form I submit image to database(I am 100% sure that this form works well and images store properly in database) but when I try to retrieve and show them nothing happens.

<!-- index.php -->
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="fa/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/bootstrap/bottons/bootstrap.css">
    <link rel="stylesheet" href="css/index.css">
    <title> index.php </title>
</head>
<body>
    <div class="product-row">
        <?php include('showimages.php'); ?>
    </div>
</body>
</html>


---------showimages.php :----------------       
<?php
    $db = mysqli_connect('localhost', 'root', '', 'online_shopping');
    $last_id = mysqli_insert_id($db);
    $query = "SELECT * FROM products ORDER BY productID desc limit 8;"  ;   
    $result = mysqli_query($db, $query);
    header("Content-type: image/jpg");
    while($row = mysqli_fetch_assoc($result)) {             
        echo "<div class='each-product'>
            <div class='product-image' style='background-image: url(".$row['pric1'].")'>
            </div>                 
            <i class='fa fa-heart-o' aria-hidden='true'></i>
            <div class='name'>".  $row['name'] ." </div>
            <div class='price'>" .$row['price'].  "<span class='toman'> dollar </span> </div>
            <div class='add-to-basket'>
                <button type='button' class='btn btn-lg btn-success'> <i class='fa fa-shopping-basket' aria-hidden='true'></i>  add to basket </button>
            </div>
        </div> " ;

    }
?>

I do some tweak and this is true answer :

<div class='product-image' style='background-image: url(data:image/jpeg;base64,".base64_encode($row['pric1'])."')'>
</div>

(there is no need for header("Content-type: image/jpg");)