Fixed code mirror for console and regex for image urls