fixed detect canvas support