detect and use frame disposal method

closes #2037