Replace magic number to argument
Rename method #create_tiled_image to #create_mosaic_image
require "tmpdir"