Completed the logic for the action to open the picture on the device
renamed global constrains