Opened the PR for custom photo models.

There are still a few things to fix (such as the clear_cache) but this should be working with django 1.4 and 1.5