make photo display && clean code