temporary files directory configuration

One my not have permissions to write temporary files to Dir.tmpdir as enforced by mini_magick, this is intended to solve this problem.