Implement LayoutResX/LayoutResY

This allows ASS scripts to be independent from video resolution.