Added orientation to imageresizer