refactor; -auto-orient for imagemagick