Clean up temporary image files (bug 1051854)