added photos and videos support