fix video resizing: use only even width and height values
add unit tests for util methods
fix documentation