Fixed issue with viewing images & documents due to new Bitbucket API update and base64 encoding