added images to actions and moved action initialization to a separate method