This is a useful contribution by Kalen Jordan; pay only attention to the fact that in some circumstances I've experienced that Basic Authentication inhibits image uploads from Admin Panel.