manually adds support for jpg and png content type