Implemented deleteFromLibrary functionality
Fixed problem with deleting image