Fix #52

Added bayer parameter to image encoder for jpeg format