added "Delete a photo" feature, also fixed the deprecated iDB support fix.