Added SlaveProcess class and added method to convert from BmpToJpeg