chekcing the base64 encoded image