Delete image metadata after image is deleted

Delete image metadata after the image is deleted successfully from
the backend store.
Set image status to it's original status if the image deletion fails.

Change-Id: I5fee1bace58ff49a8952292250629c1628edbac8
Closes-Bug: #1276142