Show photo from thumbnail
Refactor code and APIs