fix imagefile_parsename and regex