Adding Support for Detecting images and setting up content type appropriately.