Prevent last image from being deleted
If favourite image deleted set next image as favourite
Remove image sort because new image (id=0) initially appears at start then few seconds later moves to end (id=X)