view full image on web interface

I temporary change view_file_image.html

window.onload = function () {
    var img = $('#image-view');
    var img_h = img.outerHeight();
    var file_view_h = parseInt($('#file-view').css('min-height'));

>>>>>>>>>>    img.css({top:'50%',left:'50%',margin:'-'+(img.height() / 2)+'px 0 0 -'+(img.width() / 2)+'px'});

    {% if img_prev or img_next %}
    var prev_next_h = $('#img-prev-next').outerHeight(true);
    {% else %}
    var prev_next_h = 0;
    {% endif %}
    if (img_h < file_view_h - prev_next_h) {
        img.css({'margin-top':(file_view_h - img_h - prev_next_h)/2});
    }
    if (img.width() > 946) {
        img.width(946);
    }
    img.removeClass('vh');
}

I think its good idea