Add check if image.status is active

Change-Id: I2a3ff256890f5c0b8945d11e3b7792b2335162eb
Closes-bug: #1326585