Added the macro.image.features.get/post api calls.

Small refactoring.