Minor code cleanup
[#39] Use ImageMagick to get sampling factor and orientation