changed the way save usage is done.

Also added comments for images changes. To save usage now we are
checking against the usage sercices instead of getcasedetaiil full for
the errorCode flag.