Clean the HTTP headers for all types, better handling for image type
Fix the image output
Fix the image output
Added content length to the image resources