added debug version
fixed video scale issue