Added logic to store an image in the ioengine api