Creates trigger and photo model