sequence images refactored