Cleaned up RestAPI calls to catch errors correctly.
Updated add pack image.

Signed-off-by: Dalton Pelc <daltonjpelc@gmail.com>