Improvements to save button detection
Improved error logging and reliability for image sending.