Refactor Oceriser method and POST encodedImg