ani.rb: new option and gi support

ANI now supports GI's instead of files and the new option --res was
added.