fixed image attribute error.