replaced temporary file with stream
adding image stream handling
added readme
organising imports