Adding button image and changing the way events work