open file in bytes mode fixes UnicodeDecodeError

fixes #38
was getting the error too. python 3.4.1
making this change fixes the error and images display properly on the html view