finally fix the img-in-url bug