Image from catalog

Incomplete, work in progress - I made a pull request to allow discussion about the structure & implementation.

Note that some functions also use stuff used in npred_cube2 pull request (which is why I rebased against it in this PR).

To do (Ellis):
- [x] Check output type & format looks sensible
- [x] Ensure output values are sensible (Flux normalization)
- [x] Write unit tests
- [x] Add doc strings
- [x] Add short tutorial
Move the return statement at the end.
Instead modify or create new variables in the `if` statement and always return at the end.

Functions that have multiple return paths are always more complex and if it can easily be avoided you should.