Added a test script to resize an image to a given resolution.
Added options to limit the maximum resolution of the output video, which is useful for large images that exceed mencoder ability. Changed to using the h.246 encoder.