fix wrong location in temporary image handler