bug fix: generation of temporary file names for cached images should be
synchronized