Save images to tmp, tmp should be 777