resize added for photo viewer