Finished refactoring, so that display of uploaded image and stars is done via directive.