Added accept override functionality

Accept header is now able to be overridden by extension. This allows
for browsers to request images in img tags.
Refactor