Connected the resizer to the encoder.