Compatibility with NextGen gallery