Use temp folder to manage temporary test images

Bug: 50384
Change-Id: I48c4b0e45436f7d7d3167d2d903ec612d74074df