Added saving the image to the temp filesystem