Medium format fixed

medium format fixed, working properly, but large is not inline