Use asset URL instead of index when deleting photo

Fixes #28