remove unused methods, fix photo delete