Add check if image.status is active

Change-Id: Iaf9a814a8412f64663ea21d5e87c1f501355b07c
Closes-bug: #1326585
Merge "Add check if image.status is active"