fixing sortValueMax assignment - new images