change content_type of jpeg image if pdf