.imagepreview{
    position: relative;
    background-color: #e3e3e3;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
}
.imagepreview img{
    display: block;
    margin: auto;
    width: 100%;
    height: 250px;
    object-fit: contain;
}
.imagepreview input[type=file]{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    opacity: 0;
}