Use either camera and train from library

Thanks for providing this - I was about to write something similar myself but had the good sense to check github first.

I've expanded it to be able to use either camera and also import images from the phone's library (both requirements for my project).

Hope you find the additions useful.