Fixed express version
Tidied whitespace
Moved generate thumbnail to the photo helper