Refactory getScreenshotBitmap()