fixed avi encoding crashed. The encoder was not happy with uneven width or height sizes