Handle HTTP No content in API client

Change-Id: I5eb4017e11b3505d1766a8f02670c02643784ca5
Fix flask.abort in images.py

Change-Id: I39e81a52bf804b59a63fefff2e89d77cbfc53665