mjpegdec: apply flipping after decoding, not before

This is simpler and removes a silly restriction on edges being present.