Implemented jpeg compression for RGB images from kinect and refactored t...

...he background worker