.img {
    border-top: 1px solid rgba(255,255,255,0.06);
    width : 100%;
    height : 100%;
    padding: 3px 0 0 0;
    text-align : center;
    white-space: nowrap;
    overflow : auto;
}
.img:after{
    content : "";
    display : inline-block;
    height : 100%;
    vertical-align: middle;
}

.img IMG {
    display: inline-block;
    vertical-align: middle;
}