added deleteLast to photo.js