Base64 decode image javascript