added method to take screenshots of the emulator