Use RMagick and avoid tempfiles

Just keep everything in memory instead
fix width calculation
Merge pull request #2 from nakajima/no-tempfiles

Use RMagick and avoid tempfiles