tweaked photo thumbnail display and fixed a warning message