updated to add the imageId to the returned image object
updated to latest libraires