added photo thumbnail functionality