add trigger events

Did the usual clean-up and added some events for when images are messed with.