Updated image preview logic.