ImageServiceTest: replaced member by local variable.

No functional changes.