begun refactoring next images