Cleaning up the set image api and documentation.