add gridalicious styling to photos, refactor controllers