Prefix the log filenames with the image prefix
Change the name of xscale log files

Extract the file prefix calculation and use it as a prefix for
xscale log files