width changed and margin for imgs
event listener for emperor added