using objects for foreground in photos