Changes incorporated based on latest feedback, including:

- dynamically checks for the presence of status bar for cropping
- correctly calculates the size of the status bar
- saves screenshot in binary mode
- error msgs are generated using self.logger
- removed argument for taking dm_type, and device name argument created
- pruned unnecessary code