Use tempfile for ImageMagick diff file

READY

Eliminates a dependency on Rails when comparing images.