Improved fixes for issue 259 with new icon for clear frame button

Hi Franz

I've added the new icon, and changed the mainwindow.cpp code to be much more cleaner as you suggested.

Please look if these are okay.