imagenet to batch & rotation code