When selection was modified selectionImage was not being updated. I added the code for that