Setting an image source using a trigger