added global var recentDeviceImagePath to hold

the path of the most recently uploaded image to test if it solves the
problem