Converted action classes to action object.
Now close image action is only enabled when image is loaded.
Moved L&F setting to main because of early initialisation of action
object.