Correct image axis indices

Was mistakenly using image index instead of the axis index when looking
up axes. Thanks to http://fiji.sc/bugzilla/show_bug.cgi?id=799 for
reporting this issue.