Add support for disposal mode 2 and 3

- Implements restore to background color and
  restore to previous frame disposal modes