A circuit-containing photodetector is provided which can have a high sensitivity and response to light of a short wavelength and can be manufactured in a good yield. The heater has a substrate made of metal and the substrate has a convex portion in a longitudinal direction of the heater. Based upon that information, the coded units in the compressed image data may be decoded in an order that is different than the order in which they were encoded, and portions of the image may be rotated by a multiple of 90\xb0 independently of other portions of the image, thereby reducing the amount of memory needed to decompress and rotate the compressed image data.