rtpenc_jpeg: Handle case of picture dimensions not dividing by 8