Refactored the edit_sample.html & publish_sample.html into sample.html

Improved how to grab image on Windows