Added image processing. Not an easy chore - tutorial was all wrong!