added photo selection directive