Refactoring Image store api command