auto orientate images when thumbing