temporary files directory configuration

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