Building minimal images