unsigned char *loadjpeg(char *filename, int *width, int *height);