Update util.py

add logic for video size options.