pimage: print error to stderr when detected an unaccepted pixel format