Fixed a bug in the QtEncoder which would go out of bounds of the input image