Fixed a hack with ImageContentType.