compress bitmap to jpeg file