Version 2.3 ready - NextGen Gallery compatibility fix.