PhotoManager bugs fixed