Filesystem stuff moved out of jpeg.c.