Modified getbase64 from image result