Support for django 1.5, add navigation arrows to photo gallery