getting final bitmap and fix orientation