added removing and adding of phtotos functionalities