working saving as bitmap