use /public/tmp to store photos - not /tmp