Create tiled image
Refactor specs
Rename method #tmpdir to #tmp_dir