Finish refactoring mist_images module