Added content-type and content-length to file and image responses