store images to tmp