added option to pass in image data directly
made ability to pass in raw imagedata a bit safer
removed leftover default param
Merge pull request #10 from hdragomir/master

Added ability to pass in raw image data