Add exception handler for images

*Add exception handler for images

Change-Id: I8839c53fc3c861175f6df9f2007e237c3234a9a6
Merge "Add exception handler for images"