Fractals: A Mathematical Framework