Add optional headers to image request

I've been working on a project where the images requested need to be secured with authentication, so I've added an additional settings option to add fields to the request header. It works well with 1.5.7, I haven't been able to build master to test it there though.