Save images inputstream into temp files