fixing image loading and display for photo page